<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul {
            display: flex;
            flex-wrap: wrap;
        }

        li {
            width: 300px;
        }

        img {
            width: 120px;
        }

        p {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>

<body>
    <h3>{{ msg }}</h3>
    <div>
        <ul>
            {{ each data val i }}
            <li>
                <img src="/static{{ val.img }}" alt="">
                <p>名称：{{ val.name }}</p>
                <p>作者：{{ val.author }}</p>
                <p>出版社：{{ val.cbs }}</p>
                <p>简介：{{ val.intro }}</p>
            </li>
            {{ /each }}
        </ul>
    </div>

    <a href="/data?num=5">下一页</a>
</body>

</html>